fix cal/rawBg bug
fix cal/rawBg bugs, and scale by sgv/filtered ratio when available
Merge pull request #230 from scottleibrand/wip/iob-cob

fix cal/rawBg bugs, and scale by sgv/filtered ratio when available