Updated Motor Example

Updated motor example to make motor usage more clear.