Reorganize line breaks to get better error messages
log validation errors, too, if any occured.
Merge pull request #7 from EHJ-52n/master

Minor changes