added heterodyne code for upstairs. seems to basically work at least for positive frequencies. need to deal with even/odd channels at some point