added code templates, fixed view of graph constraints