Merge pull request #102 from andrew-elder/master

update to command wait mechanism and compiler warnings
Merge pull request #103 from andrew-elder/master

Correct printf() format specifer for 64-bit integer. Should fix warning ...
include cinttypes instead of inttypes.h to fix linux x64 build error when parsing PRIx64