Added error checking for integers

ConnectLDriver: added a try/catch loop in a new function in order to
force the user to enter an integer when entering the number of columns