Added Application Mode

Application Mode to check if application is running in Debug or Release mode. This needs to be defined in the Preprocessor Macro as RELEASE=1 for Release.