Small diagrams improvement to support for Prolog files and Prolog modules