Save Last Error Code

Replaced ErrorOccured() with GetErrorCode()
Function Success Flag

Most functions will now return a boolean value indicating if the
operation was successful.
Reset Clears Variables

All flags and buffers are cleared in the reset() function
Reset Buffer After WaitResp()

The inMessage buffer is reset after a successful call to WaitResp().
This prevents old data from being reprocessed.