Small cleanup for Spark usage

Looks good! Here are a few small changes. The most significant is avoiding `#define DEBUG 0` because that conflicts with an internal core-firmware definition, causing a "previously defined" error in my local build.

I tested it with the Johnny Five IO plugin example, which worked. I don't have a way to test all the action codes, so you should.