fix: Correct typos, improve documentation clarity, and remove dead code (#4511)