fix whitespace and line break in dynam

fixes #3
moreover fixes some indentation
added template to remove @dur from mRest

fixes #1
Merge branch 'bugfix_rendInDynam' into develop
Merge branch 'bugfix_noDurOnMrest' into develop