Added code for reading IR signals

Still needs debugging. Signals are detected and read in, but the values
are incorrect.