Fixed some errors after tidying up code
Added package.json

Dependencies can now be installed by running install.bat