Moved package.json inside the project and fixed some errors that resulted. Also added error codes to the controller