Merge pull request #95 from JustAddWires/DMap

Disable PWM properly after unexpected program exit.
Fix problem configuring Digital I/O pins.