Added proper stats for directories and implemented a half-baked file creation