reorganized, added c++ examples