Code Revamp

 Moved templates code as part of the resource directory