Add versioning to documents