added package.json and fixed some stuffs