Updated the jsdoc parameters. Made the config parameters optional
Added an explicit return.