Fixed bugs with frequency input.  Output to LED is currently inverted