Thanks, I used some of your code and apparently the bullet connectors on my motor to the esc were soldered poorly, hence the jittering, after fixing it and running the code again everything works fine. :)
Also for the A0 pin I used a potentiometer :)
#include <Servo.h>//Using servo library...