Re-Added "StyleName" to paragraph
Small refactoring of document property and variable handling