Fixed bug with line 161 file_buffer, changed indenting, rearranged
defintions and order of the code to reflect closer to the instructions
in BHP, added byte size to line 232 for buffer.