minor fixes
cleanups

* replaced all tabs with the (true) whitespace
* using now HDF-5 flush, as it reduces possibility of
  file corruption.