Better testing.
Add `doc` target, more comments.