Directory trees; overall style

+ More straightforward directory trees handling
+ Most procedural structures have been rewritten
+ Sections and subsections added for better readability in frontend