added filehandling to UfmfFile.java