Added basic diagrams stuff

It still needs a lot of work, but it's a start.