Added code to split file into array buffers, no padding yet.