Fix readahead memory leak

This verifies and fixes #16
this concat is a super cool trick, I think it deserves a better explanation, either in the form of more comments or its own function