minor formatting changes; changed toHHMMSS() from String.prototype function to regular function variable --KW
reorg, prep for separate files --KW
first pass at reorg, more to come --KW