Add set_pin/get_pin
Fix examples and documentation