Check if connection is lost then reconnect
Added base file for artifical intelligence

Made sure quote id is readable