added weighted ratio fit capability to rbtectofigs.py