Updated tapkee library

- Better parameters handling: proper invariants to avoid bugs
- Better exceptions usage
- Better naming of types