minor edit to correct bug in library
Added in hand control, and fixed up the shutdown stop code