revision: opt.py and routing2.py

merged opt.py and routing2.py to routin.py; integrated opt.py with routing2.py ; small updates to routing2.py