fixing Issue #6

* added output data will be checked if its has a valid format before reading it
Merge pull request #1 from M4GNV5/master

fixing Issue #6