Add a makefile and move examples to test directory.