Cleaned Up main(). Getting into the simulation part.