time debug added

-type casting syntax fix in allstates for saturation

-error message added to timeCheck if loop is too slow
Merge branch 'Nima-Ghods'
Merge branch 'master' into Nima-Ghods