Fixed bugs, added deploy scripts to package.json