Refactor motor samples

Signed-off-by: Eduardo L. Buratti <elb09@c3sl.ufpr.br>
Refactor cl files

Signed-off-by: Eduardo L. Buratti <elb09@c3sl.ufpr.br>