Added a readme, and tidied up some tests.