Update createSidebar with jsdoc style comments (very much like phpDoc).