changed template file extensions and cleaned up some extra lines that werent needed