Pololu Dual MC33887 Motor Driver Arduino Library

I need help with the creation of a library for the Pololu Dual MC33887 Motor Driver Carrier
I have the basic code started
Thanks

/*motor driver library */

include "WPRogram.h"

include "MD.h"

D2L::D2L(int D2L) { pinMode(D2L, OUTPUT); D2L = 12; }

IN2L::IN2L(int IN2L) { pinMode(IN2L, OUTPUT); IN2L = 11; }

IN2L::IN1L(int IN1L) { pinMode(IN1L, OUTPUT); IN1L = 10; }

D2R::D2R(int D2R) { pinMode(D2R, OUTPUT); D2R = 9; }

IN1R::IN1R(int IN1R) { pinMode(IN1R, OUTPUT); IN1R = 8; }

IN2R::IN2R(int IN12) { pinMode(IN2R, OUTPUT); IN2R = 7; }

void leftforward() { digitalWrite(IN1L, LOW); digitalWrite(IN2L, HIGH); delay(10); }

void leftreverse() { digitalWrite(IN1L, HIGH); digitalWrite(IN2L, LOW); delay(10); }

void rightforward() { digitalWrite(IN1R, LOW); digitalWrite(IN2R, HIGH); delay(10); }

void rightreverse() { digitalWrite(IN1R, HIGH); digitalWrite(IN2R, LOW); delay(10); } void rightbrake() { analogWrite(_pwmPin, 0); delay(10); }

void leftbrake() { analogWrite(_pwmPin, 0); delay(10); }