added documentation  for controllers