added terms and conditions; improved AI