add some debugging packages
add first part of the main program; departments extraction completed