lots of css fixes in sim explorer and some small bug fixes

also changing to use .format in simulation.py