added README.md, fixed compare(), added unittest suite, fixed typo