Fixed some bugs concerning missing directories and wrong file creation times
Fixed another bug (too many files in the main directory) that came up in the last version