added main code and package.json