Some cleanup and added error chekcs for the hdf5 module.
Some cleanup and added error chekcs for the hdf5 module.

SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack