Essays in behavioral economics and microeconomic theory