add license to function files