Pretty and/or sorted output

Adds opts.pretty and opts.sortedarrays. See readme.markdown for usage and examples.