updated template file
added spec file
fixed scope