refactored CurrencyPair, added JavaDocs for better explanation
code formatting