Tying things together and added some docs