Added comments for the log data struct & elsewhere.
Changed name of readAndLogData() function to logSensorData().