Added functions to calc BB for entire record.  General cleanup
Tweaked formatting, added ability to run on set of records.