correct class version and change indentation to tabs
Add header checking before downloading patch
Improve create_rollback() function