Architecture changing...a bit. Added main function: build hierarchy of folder and files.