Essays on Macroeconomic Frictions and Policy