made the mode attribute public, and refactored the hdf5reporter to use the hdf5trajectory class
removed unused imports, ran flake8
tests to the reporter