Doug/1

Update history formatting
It's a small thing, but keep the formatting consistent. Watch the spacing of braces, and keeping the "else" on the same line as previous close brace it consistent with the rest of the code.