modified app.c file and clean dev_driver.c file