First function ready. Converts degrees, minutes, seconds and direction to decimal.