Fix lineending detection

Issue: #3
Merge branch 'Issue3_LineendingOnEdge'
Fix an issue it raises error when it reads a large cell

Issue: #4
Merge branch 'Issue4_BufferRunOut'