Mountain Bike Gear Shifter

My bike gears keep shifting late, and going out of gear?
I just bought a used TREK 830 mountain bike with a shimano 21 speed. It rides alright, but the only problem is somtimes when shifting (paddle shifter) it takes some gear grinding to shift into gear. Also when I stand up to pedal hard the bike goes out of gear and into another gear. How do I fix this?
It is a simple shifter cable adjustment. There is a barrel adjuster where the cable enters the rear derailleur. It will have little nubs on it and it screws in and out.
If it is shifting late going into a lower gear turn it out 1/2 turn. If the bike shifts into a higher gear when you pedal hard turn it out 1/2 turn.
If the shift is late going into a higher gear or it shifts to a lower gear under hard pedaling turn it in 1/2 turn.
When it is close to shifting correctly 1/4 turn will fine tune it.
Cleaning and lubing your shift cables will also help.
Do not adjust any of the screws on the derailleur.
http://bicycletutor.com/adjust-rear-derailleur/
A good chain and cable lube is a must.
http://bicycletutor.com/lube-brake-shift-cables/
Going through the gears! SNOW MO BIKE! KtraK, 80cc Motor, Shift Kit!

