Added JavaDoc to various classes.