Implement rpiarduincomms as a class