add license file and remove extraneous headers from source files