add jsdoc comments for platform