Refactored build success/failure parts and updated README to match. Added failure example to README