Update Main.cpp

fixed segmentation fault.  Messaging is still not consistent.