Simplified docs-to-dataset function.
Updated version in README.
Fixed some bugs in new docs-to-dataset, added test.