Tidied up debug statements. refs #6651

Removed unused var compiler warning.