corrected typos, added frequency shift treatment