Reformatted code, changed init to take in frames value
Removed buffer allocation in read, added size macro
Replaced buffer_frames with a macro
Removed frames from header