ENH/DOC: Polished Shannon entropy functions.