added additional error checking
added additional error checking

richardagreene/CSG6206-Porfolio,richardagreene/CSG6206-Porfolio,richardagreene/CSG6206-Porfolio,richardagreene/CSG6206-Porfolio,richardagreene/CSG6206-Porfolio