Added some JavaDoc to internal classes.