Add test for decoding leading null bytes.
Correctly handle leading null bytes.

Also document several library functions and add more tests.
Version 0.3.0