completed graph templating and added support for stateful modules
completed graph templating and added support for stateful modules