I/O development and tests.

Implemented inputs and outputs. OPC tested.