Detector Diagnostics, Data Cleaning And Improved Single Loop Velocity Estimation From Conventional Loop Detectors