added documentation and minor changed