removes un-wanted comments from file