Bugfixes

Fixed various bugs in the system. The driver now works!