Fixed more javadoc.
and modified the connectFragment so that the listeners are in private classes.