Update readme.
Add test for termination condition.