Add some documentation for newly-implemented transaction functions.
Whitespace changes in the .js file.