Removing comments and superfluous text