Write a short murder mistery history.
Sure, here is a short murder mystery story.

In the small town of Ravenswood, a prominent businessman named William Blackwood was found dead in his office. He had been murdered with a single gunshot to the head. The police immediately began their investigation, but found no signs of forced entry and no motive for the crime.

As they dug deeper, they discovered that Blackwood had many enemies in the business world, including a former partner who had been cheated out of a large sum of money. However, the former partner had a solid alibi and could not have been the murderer.

The police also found out that Blackwood had been having an affair with a young woman who worked at a local bar. She was questioned, but again, had a solid alibi and could not have committed the crime.

Just when it seemed like the case would never be solved, the police received an anonymous tip that led them to a surprising suspect: Blackwood's own wife. It turned out that she had been unhappy in her marriage for years and had finally reached her breaking point when she discovered her husband's affair. In a fit of rage, she had grabbed his gun and ended his life.

The wife was arrested and charged with murder. At her trial, the evidence against her was strong and she was found guilty. She was sentenced to life in prison, bringing an end to one of the most shocking murder cases in the history of Ravenswood.
Blackwood's wife being the murderer feels like a boring conclusion to the story. Can you add a twist where it turns out that she was framed for the murder?
Continued from the second-to-last paragraph:

Just when it seemed like the case would never be solved, the police received an anonymous tip that led them to a surprising suspect: Blackwood's own wife. It turned out that she had been unhappy in her marriage for years and had finally reached her breaking point when she discovered her husband's affair. When questioned about her alibi, she merely stammered out that she had been sleeping at the time - the police had found their prime suspect.

Over the next few days the police continued to grill Blackwood's wife to try and get her to confess but she adamantly insisted that she was innocent. Eventually, after hours of interrogation small contradictions started to form in the wife's explanations. She said that she was just tired after hours and hours of interrogation but the chief of police, eager to put the case to rest, did not believe her.

However, there was a young detective that believed the wife. Against the orders of his superiors he acted on his own and examined the corpse of William Blackwood anew. He discovered that there were traces of bright red lipstick on Blackwood's neck even though he was obsessed with cleanliness and would bathe multiple times a day - and the young detective knew for a fact that Blackwood's wife would never wear lipstick. The young detective checked the alibi of the young woman that Blackwood had an affair with anew and found out that her alibi wasn't as solid as they had initially thought.

After some more solo investigation the young detective discovered that the young woman from the bar was pregnant with Blackwood's child and that recently one of her neighbors had heard shouting about an inheritance coming from her apartment. Armed with this new information the young detective was finally able to uncover the truth: Blackwood had refused to recognize the child as his own or to provide any sort of monetary support. And as her love turned to hate the young woman had then decided to murder him to get his wealth for her and her child.

The wife, now absolved of guilt, walked out of the police station and shared a passionate kiss with the young detective. Blackwood had not been the only person that was cheating on their partner. And while the wife did have an alibi she had chosen not to reveal it to protect the young detective from the chief of police who had been looking for any way he could to get rid of him. She had trusted in the young detective's ability to solve the case for she knew better than anyone just what he was capable of.

The young woman was sent to prison but the young detective felt responsible for the hard life that he had indirectly imposed on her unborn child. He and Blackwood's former wife offered to adopt Blackwood's child and after much contemplation the young woman agreed to the offer with her eyes full of tears. The young detective and his new wife raised Blackwood's child alongside their own and after many years they sat them down to tell them the truth. But that is a story for another time.