upsampleG5 was implemented incorrectly
Added exception for invalid freqCenter and freqWidth.