close to finalising readDSEL.py