added sample chapter, minor fixes