Added motor test example
fixed makefiles to not be hard coded