Added additional information to errors originating in the HDF5 stack, and cleaned whitespace

In reference to issue #345, and in addition to #400, I suggest marking errors that stem from the hdf5 stack.

In this PR I added such marks, and accidentally also removed some trailing whitespace (automatically by the editor). If you like the marks but want the witespace, let me know and I'll redo it.