added licence text to C source