add named output option to stats module
change ESL to serialize graph to binary file, add ESL program to provide quick debug dump of binary