added file writing

this code now continues to write .pngs and .xmls for unknown text/binaries, but writes the ones with known file names to their known loactions!