massive refactoring + doc + corrected motors interdependency