initial version, seems to be working based on basic tests
add a bit more to the readme