added config.h, cleaned up some header-file dependencies.