some refactoring

- read config file from several locations
- add setup.py