add configuration

* add command line configurations
* add config.ini
* various improvements