added dnld.py and reorganized everything