Updated examples and added docs