Changed definitions to proper name
Fixed issue where it read the last line twice
analysis of small calibration pulse data