Essays in theoretical and behavioral economics