Normalize line endings (CR > CRLF)
Corrected issue: Last item disappears after list reaches the end.
Some code improvements
Merge pull request #1 from promatik/master

Last item disappears after list reaches the end (corrected)