Transaction handling fixes and doco