Cleaned up some of the receiver code after hurried push to github due to
failing power supply.