Main is now properly passing arguments to the create-choose-action function.
Fixed a null pointer exception when the user does not choose a directory.
Fixed the directory chooser in the data directory chooser window to only choose directories.