Added a case to handle less than 4 byte remnant on data chunk
Masking some uncovered code, difficult to reproduce test case
Style guide adherence
Merge pull request #86 from colinmutter/fix/range-error

Fix for range error when attempting to read from buffer