add license text to .c and .h file