Several fixes. Added / corrected documentation. Added more examples.