Formatting changes, fixed bug which produced incorrect code on some '\n' and ' '