Text this: Essays on international capital flows and macroeconomic stability