HDF5 part fixed, any size and #cpu works, cleaned unused variables