Added function GetTotal(account) and GetTransactions(account). Minor refactoring.