Compatible with SparkCore

Added “application.h”
and changed constructor logic.. so that it was initialised inside the
setup function, this is a bug from SparkCore. suggested code it this
way in the Community forums for it to work.