Added examples, completed documentation