Simplify adding transactions

See #24.

cc @jancborchardt