throw if there's an existing transform function

be smarter about creating a Document for a collection
added a test
version 1.0.0