Fix license. Remove unncesary index.js. Fix main field in package.json

Fix #150