added correct_periodicity option to the sample bias correction
(#352)