Remove extra lines and comments.