added functions to gfroth library for GPIO.
updated the examples in both library and the example file.