adding rm to make clean
gets examples working again on OSX
Reorganizes makefiles, introduces libenvironments.a
introduces a .gitignore to environments directory