documentation and code cleanups