Essays On Productivity And Consumption Smoothing Under Imperfect Markets