Docs edits and minor code tweaks.