Add sample programs and a tool to experiment

I've closed the previous pull request, it was a bit broken for some reason..