Finishing adding in ability to read from buffer pointer instead of
file.