Essays On Firms And The Macroeconomy