Added warning messages, finished .c driver
Made code more legible.