Improved documentation by using JSDoc 3.