Updated and improved AIML_download.php