adds README.md
complete main functionalites; adds test cases