Code style cleanup and documentation changes