Zaslat SMS: The stability of stratified, rotating systems and the generation of vorticity in the Sun