Export option in gui now working. Added more command line options