Fix imports and globals & incorrect HDF5 title