save from search results

can save from search results, fixes some API issues, adds some comments, makes the JSON a bit easier to read