updated for PyHDF and consistent plots

with a few bug fixes and a new example.