Updates main file for npm
Fixes issue #5: Undefined is not a function. Checks if collection is set.
v0.4.1