line wrapping and fixed a few minor errors
put full example in its own module