• Add javadoc, fix warnings and typos.