stuartcr: "Why does God get angry, and punish people, when He knows exactly what they are going to do?"
Because God is perfectly just. God's character does not allow Him to just overlook sin - it must be recompensed.
stuartcr:"If He didn't want/allow them to do these things, why does He create them?"
For His own glory. You are not the first to ask this question, of course. Paul answers this succinctly in Romans 9
Romans 9 (NKJ)
17 For the Scripture says to Pharaoh, "For this very purpose I have raised you up, that I may show My power in you, and that My name may be declared in all the earth." 18 Therefore He has mercy on whom He wills, and whom He wills He hardens. 19 You will say to me then, "Why does He still find fault? For who has resisted His will?" 20 But indeed, O man, who are you to reply against God? Will the thing formed say to him who formed it, "Why have you made me like this?" 21 Does not the potter have power over the clay, from the same lump to make one vessel for honor and another for dishonor? 22 What if God, wanting to show His wrath and to make His power known, endured with much longsuffering the vessels of wrath prepared for destruction, 23 and that He might make known the riches of His glory on the vessels of mercy, which He had prepared beforehand for glory, 24 even us whom He called, not of the Jews only, but also of the Gentiles?
I believe just is something for us humans here on earth, besides, how do you know God is perfectly just?
Of course I'm not the only one that has asked these questions, they have been asked repeatedly throughout history.
I don't believe that God has a need or desire for self-glorification.