Mainly , the less movement the more speed you can achieve ... Try focusing on wrist (only) picking or finger (finger holding the pick) picking movement.
For making good solos , it's more about creativity than anything else ... Unfortunately this can't be taught , but music theory will always help ... Learn as much scales, modes , chord progrssions , arpeggios as you can ... This will help you to avoid repeated lines in a solo.