adding basic c functionallity to support moving motors