Changes in the for loop code.
Updated variable template
deleted uncessary files