Add more type signatures
Remove references to xz-utils
Update licenses
Add tests checks for optional fields