Redesign the -r and -br arguments

Use -m to specify the underlying model
fix batchgetdoc