created functions main and natConnect, natConnect is nonfunctional and commented out