Add -i and -d

-i =  number of iterations to simulate
-d when specified indicates that simulation should be stopped after
reaching stabilization criteria