Essays on Firms and Cities