Making the functions of show-package testable.
Removed another use of showError(); cleaned up unused code.