capture version_number and last_modified in omvmmi:origVocVersionId and omvmmi:origVocLastModified, resp.; also do some code cleanup and reorganization.