Create JGraphViz class and improve error handling.