Design aspects of brushless DC motor and MagNet software