Closes #13: Emit groups of txns in xml
minor: better error msg
minor: print error msg
example: added a split transaction case
example: further simplified the simple example