add readme.  Refactor test.