Fixed issue with outputsetup.in and also fixed a bug with markov and temp calculation.