revised, almost done, pdf and better examples