Modified to work with the PIC 18F speed controller

Still very basic, but seems to work!