Rewrote getNextMessage method to make use of read(buf, start_pos, max)
and throw a custom exception if something unexpected happens
Merge branch 'master' of https://github.com/asweingarten/TSK