Changed the header for the script and provided more info for Error cases

yeah thats what I meant