Dem and Trek functions commented