added some config parameters and logging
towards on batch mode