add jsdoc comments for physics