Added .catch() to tests to more easily debug failures
Updated function comments
Updated function comments to comply with JSDoc
Merge pull request #48 from firebase/jw-cleanup

Miscellaneous cleanup