added documentation and license