added Anya's function, changed is_subject according to that function, divided dem_np into dem_np and dem_token,
corrected error in is_subject to recognize subjects in relative sentences