Updated template/package.json and fixed some minor deploy bugs