also make eigh a global function; small doc edit