Adding config file

* Adding config file.
* Improved parser.