Add package.json
More accurate comments

Fix #299
Fix #292
Fix #304
Automatically rewritten for npm.