validGearParams function

Check validity of gear parameters and set defaults