remove dagwriter in favor of new importer function

This Pull Request removes the dagwriter entirely as it was fragile and inefficient code. This approach is much simpler and consumes less memory as a result.
I wish `math/rand` implemented the `Reader` interface.