converted jsdocs to classes