Added comments about the last step of writing the output file.
Expanded the README.md file.