Opens an HDF5 file. Arguments:
filename: String containing the files name.
how: What mode that should be used for opening the file, can be 'r' (read only), 'w' (write only) or 'rw' (read and write). Returns the hid_t reference upon success otherwise -1.