Added exit_code validation and updated README.md