add tests and a decent readme
add test instructions to readme