Added gpio class and test script
Fixed a couple of syntax bugs in communication