License headers

Added license headers to all source files and updated the license text in the license file