Update edgebot.tcl

Updated code to reflect TPS changed and added fixes to some code