Added headers to pattern rules
Moved delete to it's own .c file