Completed sorting routine for raw data, beginning work on dividing into seperate line type lists.