Essays on behavioral economics and social networks