Tool for rule-based report and GUI generation