private static void doAddVersion() throws MVDToolException
	{
		try
		{
			File t = new File( textFile );
			if ( t.exists() )
			{
				File m = new File( mvdFile );
				MVD mvd;
				if ( mvdFile != null )
				{
					mvd = MVDFile.internalise( m, Utilities.loadDBProperties(dbConn) );
                    mvd.setDirectAlign( directAlignOnly );
					mvd.newVersion(shortName, longName, groupName, 
						(short)backup, partial );
				}
				else
				{
					mvd = new MVD( description );
                    mvd.setDirectAlign( directAlignOnly );
					mvd.newVersion( shortName, longName, groupName, 
						(short)backup, partial );
				}
				FileInputStream fis = new FileInputStream( t );
				byte[] data = new byte[(int)t.length()];
				fis.read( data );
				char[] chars = Utilities.bytesToChars(data,mvd.getEncoding());
                version = (short)(mvd.numVersions());
				mvd.update( version, chars, mergeSharedVersions );
				if ( mvd.getDescription() != null )
				{
					MVDFile.externalise( mvd, m, folderId, 
						Utilities.loadDBProperties(dbConn) );
				}
				MVDError.log("Unique percentage="+mvd.getUniquePercentage(version));
				MvdTool.out.println(mvd.getUniquePercentage(version));
			}
			else
				throw new FileNotFoundException(
					"Couldn't find file "+t.getAbsolutePath() );
		}
		catch ( Exception e )
		{
			e.printStackTrace();
			throw new MVDToolException( e );
		}
	}