DENVER -- After weeks of secrecy surrounding the Colorado theater shooting case, most of the documents filed in court will be released to the public on Friday.

The release, expected sometime after 8 a.m. MDT, could shed more light on what prosecutors say led to the July 20 shooting at the Century 16 theater in Aurora during a special midnight showing of the new Batman movie, "The Dark Knight Rises." Former University of Colorado, Denver, neuroscience graduate student James Holmes, 24, faces 152 charges in the shooting that killed 12 people and injured 58 others.

Defense attorneys claim Holmes is mentally ill and sought the help of a university psychiatrist before the shooting, raising the possibility that Holmes will plead not guilty by reason of insanity.

In court, prosecutors raised the prospect that Holmes was angry at the failure of a once promising academic career and stockpiled weapons, ammunition, tear gas grenades, and body armor as his research deteriorated and professors urged him to get into another profession. Chief Deputy District Attorney Karen Pearson said Holmes failed a key oral exam in June, was banned from campus and began to voluntarily withdraw from the school.

Key information in the case gleaned from previous court documents includes:

_ Confirmation that Holmes sent a package to CU psychiatrist Lynne Fenton. In the document, defense attorneys Daniel King and Tamara Brady described Fenton as Holmes' psychiatrist, although prosecutors have said that their doctor-patient relationship ended on June 11, weeks before the attack. The package contains a notebook that reportedly includes descriptions and drawings of an attack, but Fenton said she never saw the notebook.

_ Information from prosecutors that Holmes in March spoke with another student about killing people "when his life was over."

Prosecutors and defense attorneys had asked that court documents be sealed to preserve an ongoing investigation and protect Holmes' right to a fair trial. Sylvester ordered that some information in the documents that will be released have information blacked out to protect the identities of witnesses. Documents that won't be released include an arrest affidavit, which contains information about the investigation, as well as requests for search warrants and subpoenas.

In his order, Sylvester noted that some information contained in court documents had been divulged in court and placing limits on what's released balances the public's First Amendment rights to see the court file, and prosecutors' and defense attorneys' concerns.

Loading Slideshow...
  • James E. Holmes

    James E. Holmes, left, appears in Arapahoe County District Court, with defense attorney Tamara Brady, right, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting on Friday, July 20, in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • James E. Holmes, Tamara Brady

    People in the courtroom listen to the court hearing of James E. Holmes in Arapahoe County District Court Monday, July 23, 2012, in Centennial, Colo. Holmes is accused of killing 12 and wounding 58 in a shooting rampage in a Colorado theater on Friday, July 20. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • James E. Holmes

    James E. Holmes appears in Arapahoe County District Court, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting last Friday in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • In this image taken from video provided by KUSA.com, James Holmes, left, the suspected gunman in Friday's Colorado theater massacre, makes his first appearance in court with his attorney Tamara Brady in Centennial, Colo. on Monday, July 23, 2012. (AP Photo/KUSA.com)

  • Carol Chambers

    Carol Chambers, district attorney for the 18th Judicial District, speaks during a media availability after a court appearance by James Holmes at the Arapahoe County Courthouse, Monday, July 23, 2012, in Centennial, Colo. Twelve people were killed and dozens were injured in a shooting attack early Friday at a packed theater during a showing of the Batman movie, "The Dark Knight Rises." Police have identified the suspected shooter as Holmes, 24. (AP Photo/Alex Brandon)

  • James E. Holmes, Tamara Brady

    James E. Holmes, center, appears in Arapahoe County District Court, with public defenders Tamara Brady, right, and Daniel King Monday, July 23, 2012, in Centennial, Colo. Holmes is accused of killing 12 and wounding 58 in a shooting rampage in a movie theater on Friday, July 20 in Aurora, Colo. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • James E. Holmes

    James E. Holmes appears in Arapahoe County District Court, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting Friday, July 20, in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • David Sanchez

    David Sanchez, whose son-in-law was critically wounded, speaks after a court appearance by shooting suspect James Holmes at the Arapahoe County Courthouse, Monday, July 23, 2012, in Centennial, Colo. Twelve people were killed and dozens were injured in the shooting attack early Friday at an Aurora, Colo., theater during a showing of the Batman movie, "The Dark Knight Rises." (AP Photo/Alex Brandon)

  • Family members of a victim from last week's theater shooting in Aurora, Colo., link hands as they arrive for a court appearance by shooting suspect James Holmes at the Arapahoe County Courthouse, Monday, July 23, 2012, in Centennial, Colo. Twelve people were killed and dozens were injured in the shooting attack early Friday at the packed theater during a showing of the Batman movie, "The Dark Knight Rises." (AP Photo/Alex Brandon)

  • A woman, third from left, is led to the courtroom where James Holmes appears in Arapahoe County District Court, Monday, July 23, 2012, in Centennial, Colo. Holmes is the suspect in the mass shooting last Friday in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Barry Gutierrez)

  • Anggiat Situmeang,

    Anggiat Situmeang, center, who suffered an injury in last week's theater shooting in Aurora, Colo., is helped inside to see a court appearance by alleged shooter James Holmes, at the Arapahoe County Courthouse Monday, July 23, 2012, in Centennial, Colo. (AP Photo/Alex Brandon)

  • James E. Holmes

    Assistant District attorney Karen Pearson speaks at a hearing for James E. Holmes in Arapahoe County District Court, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting last Friday in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • James E. Holmes

    James E. Holmes appears in Arapahoe County District Court, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting last Friday in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • James E. Holmes

    James E. Holmes appears in Arapahoe County District Court, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting last Friday in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • James E. Holmes

    James E. Holmes, left, appears in Arapahoe County District Court, with defense attorney Tamara Brady, right, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting on Friday, July 20, in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)

  • James E. Holmes

    District Court Judge William Blair Sylvester speaks as James E. Holmes appears in Arapahoe County District Court, Monday, July 23, 2012, in Centennial, Colo. Holmes is being held on suspicion of first-degree murder, and could also face additional counts of aggravated assault and weapons violations stemming from a mass shooting last Friday in a movie theater in Aurora, Colo., that killed 12 and injured dozens of others. (AP Photo/Denver Post, RJ Sangosti, Pool)