Clean up documentation and leading spaces from code generator