TUCSON, Ariz. - Federal prosecutors brought charges Sunday against the gunman accused of attempting to assasinate U.S. Rep. Gabrielle Giffords and killing six people at a political event in Arizona.

Investigators said they carried out a search warrant at suspect Jared Loughner's Tucson home and seized an envelope from a safe with messages such as "I planned ahead," "My assassination" and the name "Giffords" next to what appears to be the man's signature. He allegedly purchased the Glock pistol used in the attack in November at Sportsman's Warehouse in Tucson.

Court documents also show that Loughner had contact with Giffords in the past. Other evidence included a letter addressed to him on Giffords' congressional stationery in which she thanked him for attending a "Congress on your Corner" event at a mall in Tucson in 2007. Giffords was shot at her first "Congress on your Corner" event with constitutents of the new year

Heather Williams, the first assistant federal public defender in Arizona, said the 22-year-old suspect doesn't yet have a lawyer, but that her office is working to get a lawyer appointed for him.

Williams' office is asking for an outside attorney because one of those killed was U.S. District Judge John M. Roll.

Pima County Sheriff Clarence Dupnik said Sunday that Loughner acted alone.

Meanwhile, authorities released emergency calls in which a person witnessing the mass shooting outside a grocery store in Tucson describes a frantic scene and says, "I do believe Gabby Giffords was hit."

Loughner fired at Giffords' district director and shot indiscriminately at staffers and others standing in line to talk to the congresswoman, said Mark Kimble, a communications staffer for Giffords.

"He was not more than three or four feet from the congresswoman and the district director," Kimble said, describing the scene as "just complete chaos, people screaming, crying."

Loughner is accused of killing six people, including a federal judge, an aide to Giffords and a 9-year-old girl who was born on Sept. 11, 2001. Fourteen others were wounded, including the three-term Democratic lawmaker. Authorities don't know his motive, but said he targeted Giffords at a public gathering around 10 a.m. Saturday.

Federal prosecutors charged Loughner with one count of attempted assassination of a member of Congress, two counts of killing an employee of the federal government and two counts of attempting to kill a federal employee. He also could face state charges in the killings.

Doctors treating Giffords at Tucson's University Medical Center provided an optimistic update about her chances for survival, saying they are "very, very encouraged" by her ability to respond to simple commands along with their success in controlling her bleeding.

Mourners crammed into the tiny sanctuary of Giffords' synagogue in Tucson to pray for her quick recovery. Outside the hospital, candles flickered at a makeshift memorial. Signs read "Peace + love are stronger," "God bless America and "We love you, Gabrielle." People also laid down bouquets of flowers, American flags and pictures of Giffords.

One of the victims was 9-year-old Christina Taylor Green, who was a member of the student council at her local school and went to the event because of her interest in government. She is the granddaughter of Dallas Green, former manager of the Philadelphia Phillies major league baseball team. Her father, John Green, is as a scout for the Los Angeles Dodgers.

She was born on 9/11 and featured in a book called "Faces of Hope" that chronicled one baby from each state born on the day terrorists killed nearly 3,000 people in the U.S.

The fact that Christina's life ended in tragedy was especially tragic to those who knew her. "Tragedy seems to have happened again," said the author of the book, Christine Naman. "In the form of this awful event."

Authorities said the dead included U.S. District Judge John M. Roll; Green; Giffords aide Gabe Zimmerman, 30; Dorothy Morris, 76; Dorwin Stoddard, 76; and Phyllis Schneck, 79. Judge Roll had just stopped by to see his friend Giffords after attending Mass.

An unidentified man who authorities earlier said might have acted as an accomplice was cleared Sunday of any involvement in the attack. A security camera captured an image of a man with Loughner shortly before the attack.

Dupnik said the man was a cab driver who walked into the Safeway grocery store with Loughner because the driver didn't have change for a $20 bill. He said the shooting occurred just after the two exchanged money.

In one of several YouTube videos, which featured text against a dark background, Loughner described inventing a new U.S. currency and complained about the illiteracy rate among people living in Giffords' congressional district in Arizona.

"I know who's listening: Government Officials, and the People," Loughner wrote. "Nearly all the people, who don't know this accurate information of a new currency, aren't aware of mind control and brainwash methods. If I have my civil rights, then this message wouldn't have happen (sic)."

In Loughner's middle-class neighbourhood -- about a five-minute drive from the scene -- sheriff's deputies had much of the street blocked off. The neighbourhood sits just off a bustling Tucson street and is lined with desert landscaping and palm trees.

Neighbours said Loughner lived with his parents and kept to himself. He was often seen walking his dog, almost always wearing a hooded sweat shirt and listening to his iPod.

The assassination attempt left Americans questioning whether divisive politics had pushed the suspect over the edge.

Giffords faced frequent backlash from the right over her support of the health care reform last year, and had her office vandalized the day the House approved the landmark measure.

Dupnik lashed out at what he called an excessively "vitriolic" atmosphere in the months leading up to the rampage as he described the chaos of the day.

The sheriff said three people helped subdue the gunman. Dupnik said Patricia Maisch was waiting in line with her husband to get a photo with Giffords. When the shooting started, she ran up to the suspect and grabbed the empty magazine, then grabbed a full magazine as he was loading it into the gun.

Two men helped subdue the suspect -- Roger Sulzgeber, who was also in line, and Joseph Zimudie, who was at a nearby drug store and heard the shooting, Dupnik said.

"He was definitely on a mission," according to event volunteer Alex Villec, former Giffords intern.