Added file downloading and preview

Added file downloading and preview