changed ctrl to controller and serv to service

changed ctrl to controller and serv to service. updated doc and fixed
bugs of examples