Enforce D coded as 0 and 1

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