Zaslat SMS: Dynamics of detonations and explosions