How to add simple Servo code from a Tutorial?

You are right about that, the library says:

write()     - Sets the servo pulse width in microseconds.

I'm honestly not sure what is wrong with your program now. That's another thing.