Cleanup examples

Most of the work was to get the default make for examples to work and then to run. 

* added .gitignore for repos
* cleaned up examples to work with *_T structs
* added `make debug` option for examples, modified for libamp
* removed extra files that were in github, but not in darcs (memdebug.c and out.c)