The Westing Game

I read the book and I don't understand it. Can someone give me a clearer understanding of what went on? Who really killed Sam Westing? If the answer to the puzzle is Crow, why should she win the inheritance if she is the murderer?