Added 'download snippet' functionnality