added some simple citation insertion and commented out a whole bunch of debugging statements.