added prefix to data file that stores length, width, and height of pattern. fixed a memory leak in convertPatternToData