Bugfix: Remove stack leak & add check for NULL variable

A printf(3) with 2 %d in the format part didn't have any further
parameters.
A parameter pointer wasn't check for NULL.
Add function to read EOW information structure on disk

This is needed for further development.