added example useage for gedit, fixed compile