cleaned up package.json
cleaning up the code and adding comments