Limit and drive stuff changed

fixed limit stuff for pivot and swapped a few things in drive functions