Added IF, IF_LIKE, and IFVAR_LIKE templates.
Minor edits