Essays On Flows Of Capital And Labor Across Countries