Added some Javadoc comments where they might be helpful.