Changed the makefile and fixed some of the issues in the driver.