added examples and corrected problems spotted via the examples; updated text