control flow a bit, simplify another bit, and add comments.
Attach a file by drag & drop or click to upload