add a license file and remove debug code