Use configuration file

Separated config into separate file- config.py
Also general cleanup.