revision of readCastepTKin.py