Fixed file naming issue, File output function complete, not implimented