Added class to check for forbidden functions only in template files

Addresses issue #23