Revamped Debug Printk

Changed ioctl to allow the application to set the debug level.