Tidied-up and commented module_foc_hall