switch from project path to root path
simplify
put templates into resource folder
refactor checks into separate class
Merge pull request #45 from mikey179/master

incorporate new rootpath and resource loader