Enforce D coded as 0 and 1

In the calculate_roc function, the code assumes D is coded as 0 and 1, I added a check in the code and updated the argument description.