Removed unused code from driver, cleaned it up and simplified it to contain the most relevant examples.