Suggestion on how to change the speed of servo

Well, you could make the parameter of "delay" a variable, or for bonus points, get rid of "delay" altogether.

I'm a bit bored saying this but
for(pos = 0; pos < 180; pos += 1)  // goes from 0 degrees to 180 degrees clearly it doesn't.
It would be better not to bother with the comment.