added license at the top of some of the source files