Allow specifying pullup or pulldown when opening a pin
Documentation updates for pullup resistor option.
Resolved conflicts in pull/5