Added Document Versioning and Version Check