remove calc_msq and bring logic into main loop
remove calc_msq and bring logic into main loop

hall-lab/svtools,abelhj/svtools,hall-lab/svtools,abelhj/svtools,hall-lab/svtools,ernfrid/svtools,abelhj/svtools,ernfrid/svtools,abelhj/svtools