add sample directory with Makefile, fix early-close in ytgloss