Fixed some spelling mistakes and JSDoc comments