docs and tiny code cleanup