Added Pin class for easy gpio management and example code for testing