Added Javadoc to caves.