Version changes

- Using JS module pattern
- Created small API
- New features