Added working motor example

Added support for reading and writing to a Unix device