Create test/example. Move main function to separate directory.