Scattered commenting and documentation improvements