rewritten (simplifying) the codegenerator
go fmt math code