Added a few more examples to readme
Added testcases and fixed a few bugs