Modify dump_h5md to allow use with write_dump

The arguments modifying the behavior of the dump are now box and
create_group, both accepting "yes" or "no".
Update for multiple groups and use of write_dump.