Rename documents

- Determine if a group or a document is being renamed and name
accordingly