On Unique Decodability, McMillan’s Theorem and the Expected Length of Codes