Wait for io properly. Added additional commentes.
2 files changed