Whitespace reformatting into closer to my preferred style.  About to take over this part of the code a little more intrusively from where it started in ptsminer.