Added flag pass on hit. Also writes a _result.txt file with ether PASSED or FAILED based on the outcome