Fixed stuff, replaced Xmedsys with AGM,Deleted LEA