added batch processing, configfile support

added features from feature request: #2 and from your suggestion (config file)