Some cleanup, and finished DriverHook.

Cleaned up code a bit, added a test on modexec.t, and updated
documentation in DriverHook.pm.