Added download for folders
Many changes