Moved Stats generation to utility functions
Added SmartTrack. See FR #1
Added metadata to JSON object to identify Smarttrack status