Added macro generation and markdown compatible stats.