Gh137 code sync decorators for diagrams

issues #137, #152