Clean up export lists and add a doctest to the parsing function.