Added a check_file function and feature to gracefully exit if the file
give in add does not exist
Fixed the exit(0) that are actually in error catching spots.