Added further documentation and examples