CNN  — 

Four months before Andrew “AJ” Freund’s parents were charged with his murder, the 5-year-old shared information on possible abuse with a doctor in Illinois.

The 5-year-old had been forced to take a cold shower in their Illinois home after he soiled his clothes that night, and had gone to bed wet and naked before his parents found him dead, authorities said.

Court documents filed by a detective seeking a warrant paint a grim picture of his final days. The detective said the boy likely died the night of April 15 – but wasn’t reported missing until three days later.

During that time, his father, Andrew Freund Sr., told investigators that he stashed AJ’s body in a tote and stored it in the basement, according to court documents. Then he put the body in the back of his truck and buried it in an empty lot, the documents allege.

AJ’s body was found April 24 in a shallow grave covered with straw in Woodstock, Illinois, about 10 miles from the family’s home in Crystal Lake. His parents, JoAnn Cunningham and Freund Sr., have been charged with murder.

He was allegedly abused until the day he died

The court documents were part of a statement by a McHenry County detective in a request for a search warrant. The now-sealed documents were obtained and posted by the Northwest Herald.

The documents revealed a short life filled with trauma and neglect until the day the boy died. When police went to his home after he was reported missing, it was cluttered, and reeked of feces and urine.

Weeks before his death, video shot on his mother’s phone in March and found by investigators afterward showed AJ with bruises on his face and body. The two-minute cell phone video, which his mother had deleted and was found during a forensic analysis, shows the boy being berated for urinating in bed, documents show.

The video was found after Andrew Freund Sr. signed a consent form allowing the search of his cell phone after the parents reported AJ missing, the documents allege.

Investigators discovered text message communications that were in the father’s phone but had been deleted on Cunningham’s phone. They also found out AJ’s mother had searched for CPR that night using Freund’s cell phone, documents allege. Freund told detectives that Cunningham, who is pregnant, may have been searching CPR for babies in anticipation of her newborn.

Crystal Lake police reached out to Apple for data belonging to Cunningham, and found the video showing a badly beaten AJ in her deleted files, along with the missing text messages and a photo of a shopping list that included duct tape, air freshener and gloves.

Cell phone video marked a turning point

The court documents detailed the boy’s bruises in the video.

“AJ is seen to (be) naked except for some small bandages around both wrists and circling his hips,” the document says. “AJ is seen to be holding an ice pack to his face and when he removes it he is seen to have deep red bruising around his eyes.”

The video marked a turning point in the case. When investigators showed it to Freund during questioning April 24, he told them his wife caused AJ’s injuries and provided his account of what happened the night the boy died.

“He believed AJ died on Monday morning after spending a prolonged time in a cold shower,” the documents state. “Drew explained he wanted Joann to stop with the hard physical beatings and do some less violent form of punishment. Drew said cold showers was decided (as the alternative).”

Father took police to son’s grave

After the confession, Freund took police to the grave in Woodstock, where they found AJ’s body on a vacant lot, the court documents say. An autopsy concluded he died of blunt-force injuries.

Freund told detectives that his wife believed AJ had “oppositional defiance disorder,” and was always combative and defiant, documents say.

Before police confronted him with the cell phone video, Freund had maintained that his wife put AJ to bed after saying prayers that night, documents say. The next morning, April 16, he went to a doctor’s appointment at 6:30 and when he returned home, AJ was missing, Freund told authorities.

At the doctor’s office, a woman who checked him out said he asked for a receipt and said, “The lawyer in me thinks I need a paper trail.”

A report by the Illinois Department of Children and Family Services revealed a long history of child welfare hotline calls with reports of a troubled home life, squalid living conditions and drug abuse by the parents. Some of those calls predated AJ’s birth.

The agency said it’s reviewing its handling of cases involving AJ’s family. A caseworker and supervisor have been placed on administrative duty with no casework responsibilities during the review. The agency said it will also review all cases handled by the two employees.

A memorial for AJ will be held Friday.

Clarification: This article has been updated to include attribution of the court documents to the Northwest Herald.

CNN’s Kara Devlin and Sheena Jones contributed to this report.