Various flow changes for exception and quit handling, added file/folder commands and improved file and filename handling.