Update README.md

Added more details on how the code works.