added some examples and fixes