Converting MESSAGE_STATE and ERROR_CODE to uint8
Added support for QuerySm
Merge pull request #2 from fiorix/master

Support for QuerySm