refresh button and download formats
update ui.js
update to front-end
Merge pull request #8 from tylyan/master

Fixed merge conflicts/cleaned up code