Added missing "invert_display" config item. Added some more local logging functions.
Cleaned up more warnings.