Comments added for controllers

Also added error prevention on POST group API