added license to header and source files