type capitalization typos and additional JSDoc annotations