Started outputting debugging information and cleaned up the way declarations are initialized.