updates README.md
completes main functionalities; adds test cases;