added styling rules and more structured output