Can someone put some PWM motor control samples in the IDE?

Bi-directional DC motor control requires a motor control shield. In most cases you can find a library for your motor control shield and that library will come with examples.