Added Javadocs for the new showMessage method