Here, have an init function.
Simplifying the file organization
Fixing the http return codes