Essays on Technology, Productivity and Misallocation