Fixed crash and modified ApplicationTracker

Modified log entries to be csv so that they can be parsed easily.