Adding initial implementation of hardware interface.
Added further changes for hardware implementation (can now do note on and off).