The variable named collection is misleading. This will be addressed in #88.
I added some filename and line numbers to some error messages just to make it more clear where the error happened. I did it while debugging but decided to keep the change in there.
Notes:
collection
is misleading. This will be addressed in #88.