Removed a bunch of unused dependancies from package.json
Fixed memory leaks