adding barebones code for demodulating nearfield radio packets