P R A C T I C E ....
Nothing else matters as much as lots of practice.
For form, look at vids of JuanCarlosFerrero or LeytonHewitt. Don't make up your own.
Lots of spin for second serves, swung as fast as you can under control.
For first serves, your choice. Some need high percentage, some like to take the risk with flat serves at 40%.