[CPP] updated the example application
-Updated to use the new SyncVars names. -Fixed update timer that was not started, and erroneous exit in case of error.