Fixed off-by-1 error in strdup. Added checks that display device is valid.
Added driver validity checks.
Changed minimum page count to 1.
Don't map page 0 to enable easier catching of null-pointer bugs. Extra debugging output.