Handling empty list of subdirectories.
Some first bugs fixed. (Testing ongoing.)