Add some diagrams and some docs.