Better transaction syntax

Closes #9