Correctly initialize pending/completed in collector constructor
Added jsdoc specifiers