Added main to export category graph