More separation of arguments to make it possible to call from GUI
Working GUI that takes input directories as input