works, maybe, please?
Delete some obsolete commented out code
fixes and a test case
Add artificial read start to the end of the file to prevent crashing at the end