Added export of functions.
Added more haddocks.
Added more documentation.
Added test and documentation for endAtomic.
Added more documentation.
Split setNetbeansBuffer function into two. Docs added.