read number of iterations from config
Merge pull request #133 from corpaul/fixnrIterations

read number of iterations from config