Add more tests and better docs

Signed-off-by: Ken Barber <ken@bob.sh>