fixes to repeater insertion

Appropriately calculate capacitance of wire based on length in RI
routines
Some touchup fixes to i/o in old routines to ensure they work (RI_old)