More API cleanup and a frequency response example