Fixed crashing issue if slash in name of file, got rid of unneeded printout