Changed getDataFromBuffer() to not return reference
Merge pull request #15 from collinday/bugfix/12

Changed getDataFromBuffer() to not return reference