Organization of files into proper tree structure