If god knows everything then why does he get upset when stuff happens?

Why did the god of Abraham create man to be imperfect, just to punish him for it in the afterlife?

If he's truly all powerful why not create everything exactly the way he wanted; a world free of death and sin and no one has to get nailed to anything?
Update: Why are all the Christian excuses so vastly different from one another. You guys need to get together and come up with one cover story, just the one so you're all on the same page.
203 answers 203