Fix outdated javadoc comments and typos