replaced gulpfile, fixed errors in main.js thrown by gulp, removed templates and refactored prototypes