Added missing line break
Applied minor refactorings
Formatted code
Fixed typo in generated comment