added updateFreeBlocks, removed all buffer read/writes bc of project
specs