tweaks
standardise query and add edit-type checking.
Misc. typo and variable-name related bugs
update copyright status, add wiki_retriever.R and associated data.