Added Digital Inputs

Missing digital input functionality added (gross oversight!)