Fixed errors in file tree generation
Merge pull request #24 from Gvin/master

Fixed errors in file tree generation