added some debugging stuff

Still have not removed bugs.  sigh.