fix reserved variables, closes #35

Also corrects tMax calculation (it was previously dt too large).