Added weightcalc function
Renamed demo_setup.py to config_setup.py
Renamed demo_estimate_delay.py to test_weightcalc.py