outFields and jsDoc comments
Updated jsdoc comments
Updated variable name
Missing semicolons
Fixed collections array handling.
Use `collections` array for syncing databases.
Docs
JSDoc comment