corrected variable names for stan.
found input bug -- now ensure thin is at least 1 and issue warning.