Essays in macroeconomics and business cycles