Add BSD license to all important source files