Essays In Macroeconomics With Financial Frictions