removing comments and template comments