added documentation; fixed #9 issue