add in license file and fix a if wrong statement checkin