added afmotor lib