Essays on remittances, R&D and macroeconomy