some chagnes
Initialized refactoring
Added Handlebarjs file. Put function into right files. Time to set public/private and rename the functions.
Updated code with what Stefano did.(Commits from refactor branch)