Added animation for fade in (and optional fade out); folders sorted to the front automatically; refactored folder detection code