Avoid conflict with Spark internal debug flag
Move reset definition above usage

Allows this file to replace application.cpp in a local build without the addition of a separate declaration line. Doesn't matter in Spark web IDE because we add the declaration during preprocessing.
Cleaner substring usage
Whitespace/style changes only
Merge pull request #1 from towynlin/master

Small cleanup for Spark usage