Fixed how components are handled so that individual components can be stored and read from hdf5