Bug fixes and new test script

Fixed several bugs in the digital IO class and added a new tester script
that can be used to test all aspects of the Expander Pi.