updated docs to reflect recent changes.
minor coding style fixes.