finishes [#4] and cleans up the GPIO initialization