added analytics and a method to send the youtube searches to a file on the file system