updated movement.c and api.c with new setMovement()

implemented pranav's change to setMovement();