Switched gpio_set_dir to be passed in or out rather than a flag
Switched togglegpio.c to use gpio-utils.c