some misnnamed variables
closes #8. closes #6.
closes #9.
closes #10 and makes json downloadable