added some examples and fixed formatting