utf-8 encoding added to the files. Motor class updated.

duty is now passed with an abs() function. Minor errors
fixed.