Adding documentation and a new example.