Files can now be happily downloaded (also corrected some bugs)