Added a file check, enabled expiring header, and simple error checking to bash script.