The suspected gunman appears in court as new details emerge on how police say the attack was carried out and the red flags missed.