a few cleanups and bug fixes.
uncomment the gpio commands