working tree move example + cleanup

TAccounts can now be freely moved into other accounts of the same type.
Some of the code has been refactored slightly.