Add error handling and a footer
Support zipped files