Update docs.
Expand tests and remove unreachable code.
Add coverage for no entity.