fixed bugs with snr calculations, and more..