fixed some small bug, tested out mode SPI e 2wire

Output mode working and tested in SPI and I2C, fixed some small error,
fixed some documentation error, fixed some example.
Merge branch 'master' of https://github.com/sumotoy/gpio_expander