added Style Report sub & srErrorcheck function to Template