Ignore node modules
Update main name
Add tests, fixes a few bugerinos.