Added motor test routines
Fixed problems with GPIO export