License.
Added some documentation and tweaked the examples.