added some JSDoc