working decode of JSON, check status from API results
shuffle, tidy code, more output from API
wrap into function, move defaults code