adding in gitignore and fixing permissions on template.php