Very many refactorings. Currency exchange rate update works again