improved documentation, added InTransaction info, fixed some bugs