added legacy file format demo source code