Fixed Mean Anomaly, changed AFG keycode, fixed SP