Creates a group in an HDF5 file.
Arguments:
loc_id: The group or file reference the group should be written to.
groupname: The name of the group to be written.
comment: A comment of the group, if NULL, no comment will be added to the group.
Returns a negative value on failure, otherwise a hid_t reference.