updated examples

moved from examples/ to inst/examples
added Makefile
turned from commented-out to behind #define
corrected one identifier