added some documentation with JSDoc