initial implementation with tests
adding bin and docs to readme