initial commit of library & tests
Writing the README. Handling a few more cases, adding more tests.