add readme
add tests for inverse and corrupt input