added -r <ramimagefile> option to the simulation. fixed some misc stuff