-Fixed a NULL ptr bug with pad settings.

-Added preliminary timer support
-Fix for mutex