refactored urls, changed NlService method names and added indentation to
json results