[lint] fixed errors and added a few javadocs