Add export question option and fix a few bugs