Add minor debug check and license file