Added give fact function based on new KB

Updated and fixed some lines