add an average PSD calculator as an HDF5 example.
fix memory leaks by deleting buffers.
fix memory leaks by deleting buffers in destructor
this example converts an egg file to the hdf5 format.
clean up data type in destructor
delete type in destructor