added documentation for showContents()