Address code review
- more tests
- fix license
- add missing getter