update coreOUTPUT.php

cleaning it up a bit more & commenting out some suspected unused code.