Fixed most problems with FS methods (dup filenames, dead memory, etc.)