Taming the Illusions of AI: Understanding and Correcting AI Hallucinations