Updated function comments to comply with JSDoc