Byte size

PR as requested, will be able to jump back in tomorrow!

- [x] Rest of tests
- [x] Refactor namespaces all around
- [ ] Add API to readme
- [x] Licensing