restructuring, a proper setup.py a log catalogue