Working on examples
Numerous changes

Extensive rewriting, including construction of makefile and many new
examples