Added example code.
Elaborated some of the documentation.