clean up createTransaction
Merge pull request #137 from krazemon/transactions

clean up createTransaction