BUGFIX main: throw exception in case of an empty file
Merge pull request #21 from msmk0/fix_read_empty_files

BUGFIX: read rempty files