Display logic and comments added.

• Added Javadoc comments.