added baseFolder config
fixed file download
refactored fileTableController