changes to autonomous and added encoder methodlib