adding code
refactoring json request handling
upper case function names, tests
escaping expandable url
compact imports