fixed highlighting of last parameter in template definition, added tmPreferences for easier commenting