added more robust header comment to chardev.c