Added support for SimpleTransactions

... and some minor clean up.
Merge pull request #3 from thelalle/transactions

Added support for SimpleTransactions