modified code to allow measurment date of None, this will allow parsing of earlier files.