added method to write computed icr to a file