Added download error handling, and fixed signature grab for large files