changed gravity from 9.81 to actual formula, for more accurate results