Intermediate commit: Added routines to choose a directory from the gui
and populate the slot.