Added trait rendering to dot generator. Fixes #27