Change configuration method
Add global cache of connection
Catch sigint
Add configuration module