added some diagnostic stuff to the code display