small code cleanups and documentation fixups - does not impact functionality