Rewrote the frontend to cmd/sim.c

It will be much easier to add new options as necessary