added only read mode of H5 file and fixed bug (non-existent variable) in parameters.