added last code for checking on files..going to go back and put in alerts for else messages