File Chooser and argument checks added