issue #38 ,added documentation