Better way to get file extension, clean up failed downloads, colours for done and failed