cleaned up the examples, added Makefiles, etc

Original commit message from CVS:
cleaned up the examples, added Makefiles, etc
20 files changed