Fixed up minor things
Update sim.c
Merge pull request #44 from tassiahmed/working

Working
Merge branch 'master' of https://github.com/tassiahmed/comporgfinal

merge