removing comments and duplicate new lines from code