added initial template files
added loop file