Changed some comments around and implemented file download