Coding and commenting style fixes and documentation updates