Updating the library. Most of the stuff works with diagrams-0.7
Adding tests