Added documentation. Issue #311