Added javadoc to command.java

Edited small stuff in Mediator.java