Add configuration and needed dependencies
Refactor config file