Refactor and add tutorial to README.md