Improve README.
Refactor unit tests.