refactored and added more doc to README.md