update gitignore
Update printing legend for diagrams