lots of changes to readcxsfile c module