Added group management module.
updated to check if overwriting a more recent file.