added triggers and listeners // added module pattern which returns two functions: createTransaction and getSimplifiedTransactions.