Update DataLogger.m

Minor changes to allow the code to run.