added units to config file and rewritten generation of config for legs, we now generate leg_pos() itself