Zaslat SMS: Modelling and Control of Switched Reluctance Machines