New Haven, Connecticut (CNN) -- The lone survivor of a deadly home invasion wrapped up his testimony Tuesday afternoon after taking the stand against the second man charged with brutally killing his wife and two daughters.





With relatives packed shoulder to shoulder in the two rows closest to the jury, Dr. William Petit testified in detail about the tragic events at his Cheshire, Connecticut, home on July 23, 2007, beginning with him being awakened by being hit by a bat.





After his hands and feet were tied and a cloth was thrown over his head, he said, he heard a voice say, "If he moves, shoot him." Some of the evidence presented in court Tuesday included a handgun and photos of the rope used to bind Petit. The jury also saw pictures of his bloody head injuries.





Petit told the court that while he was tied to a pole in the basement, he could hear "loud thuds" and "moaning," likely from his wife, Jennifer Hawke-Petit. Shortly before hearing his wife, Petit was told by one of the intruders, "Don't worry. It'll all be over in a few minutes." Petit said that's when he knew "I had to get out."





Petit managed to escape but could not summon help in time to save his family.





He described his eldest daughter, Hayley, as captain of her varsity basketball team, a crew participant and soccer player, and Dartmouth-bound. His younger daughter, Michaela, was a piano player, a flute player, into sports and a member of a Brownies troop, he said.





Joshua Komisarjevsky, 31, faces 17 charges in connection with the brutal home invasion. The first defendant to stand trial in the case, Steven Hayes, was sentenced to death in December after being convicted on 16 of the 17 charges filed against him.





Testimony in the trial began Monday, with witnesses describing the final moments of Petit's wife and daughters inside their burning home and the futile attempts to save them.





Prosecutors declined to give an opening statement to start the trial. But they did introduce tapes from two 911 calls, a bank teller who claimed the mother tried to withdraw $15,000 as ransom and a police officer who found Petit fighting for life outside his family's burning home.





Prosecutors allege that Hayes and Komisarjevsky went into the Petit home, beat and tied up Petit, raped and strangled his wife, molested one of their daughters and set the house on fire before attempting to flee.





The two daughters, who were both tied to their beds, died of smoke inhalation. William Petit managed to escape.





Entering the New Haven court on Monday, the first day of the trial, Petit succinctly told reporters, "I just hope justice is served." Several other members of the victims' family packed the courtroom, many of them wearing pins that Judge Jon C. Blue allowed over defense lawyers' objections that they might sway the jury.





While he didn't present a comprehensive statement, New Haven State's Attorney Michael Dearington briefly spoke to jurors Monday, explaining that prosecutors believe the jury will be able to listen to the evidence and render a decision. As allowed by law, Dearington said, Komisarjevsky is charged both as a principal and an accessory.





Komisarjevsky's defense attorney, Walter Bansley, told jurors that his client never intended to kill anyone, that his sole purpose in breaking into the Petit home was to steal.





Bansley said Komisarjevsky did not have a weapon. He told jurors that in order to convict Komisarjevsky of capital murder, they must determine he intended to kill someone.





It was Hayes, Bansley said, who raped and strangled Hawke-Petit, poured gasoline in the house and lit a match. Komisarjevsky was a willing participant in the break-in and theft but not the murders, according to Bansley, who recounted mounting dissension between Hayes and Komisarjevsky as the home invasion progressed that morning.





Hayes felt that the Petits needed to be killed, Bansley claimed, but Komisarjevsky refused to kill anyone.





Bansley did allude to a "
What was he charged with? How many charges Joshua is facing? Who was killed in February 2007? What did he describe? What did Dr. William Petit described? Who was killed?
brutally killing his wife and two daughters. 17 Jennifer Hawke-Petit. the tragic events the tragic events at his Cheshire, Connecticut, home on July 23, 2007, wife and two daughters.
question: What was he charged with?, answer: brutally killing his wife and two daughters. | question: How many charges Joshua is facing?, answer: 17 | question: Who was killed in February 2007?, answer: Jennifer Hawke-Petit. | question: What did he describe?, answer: the tragic events | question: What did Dr. William Petit described?, answer: the tragic events at his Cheshire, Connecticut, home on July 23, 2007, | question: Who was killed?, answer: wife and two daughters.