added awareness for correct urlServiceGateway
completed documentation and example