Fix package.json main reference
Add a "run" function to the api