Added groundwork for HDF5 support

Currently there is an indexing error with the HDF write statement.
Implimented HDF5 support.