Essays in economics of information and optimal contracting