added error checking for input and dive default

Added error checking for the surface time, and changes the dive depth to 40ft if any depth input is less than 40ft..