added 'preserve_mode_on_exit' arg to pinMode() to preserve settings after program exit
added kernel gpio number to GPIO config dict
use sysfs driver to set GPIO direction