gpio bugfix: correct mode check in set_dir_and_value

This was causing direction changes and output value changes to fail for
valid gpios.
update user/settings-example.h for brevity
README.md: tweaks and cleanups