Essays on behavioral economics and economic history