New features of the analytic function expansion nodal (AFEN) method and implementation in the hexagonal-Z KORDAX code