fixed sample calculations, added sigma fit, increased frequency resolution