Modified lib file to split up into two section buffers, currently halfway through writing tests for it