Updated in-line documentation to match the JSDoc style