Integrated derk_johnson into master. Added some other stuff. Still can't recieve pulses.