fix formula
remove jQuery commands for inverting tides.
add atmospheric pressure in tide curve computation
add check for valid inputs
add localization logic