Remove trailing whitespace.
Implement read_byte_data in the OCaml interface.
Wrap long line.
Misc.

- Add license blocks.
- Cleanup signatures.
- Add missing functions.