Joh 1:1.. In the beginning was the Word, and the Word was with God, and the Word was God.
Joh 1:2.. The same was in the beginning with God.
Joh 1:3.. All things were made by him; and without him was not any thing made that was made.
The word, "Word" here is the Greek word "Logos". From logos we get the English word, "logic, reason"
Before any man or even God does anything no matter how trivial it is there must be a purpose, and a reason why you do or say it.
We find out what God's "reason" was for creating everything that exists whether it be Angels, principalities, powers Heaven, earth, and even man.
Col 1:16.. For by him were all things created, that are in heaven, and that are in earth, visible and invisible, whether they be thrones, or dominions, or principalities, or powers: all things were created by him, and for him:
Everything in existence was made by Christ, and it was made for Christ!!! If every thing was made for Jesus Christ, then everything was also made for us sense he is our head, and we are his body!!!
As for Evil we find this......
Isa 45:6.. That they may know from the rising of the sun, and from the west, that there is none beside me. I am the LORD, and there is none else.
Isa 45:7.. I form the light, and create darkness: I make peace, and create evil: I the LORD do all these things.
From the outset, God does not on purpose create "evil", but he did create the spiritual being who became "evil" and brought sin into this world, known as Lucifer. There is a huge difference between on purpose creating evil to creating a being, beautiful, and full of Wisdom and then became sin. Even thou God created this being he did not cause it to happen as all of God's spiritual beings have a free will choice.