added newline compiler check, corrected newline issues