added documentation
some minor change