Added auto-recover mode - Lot of code rewriting and improvements - Bug fixing