Reformat with modern idioms for readability, document, fix https://github.com/NerdNu/NerdBugs/issues/179.