Added the --export-all and --export-root command line options; resolves issue #10.