Added documentation. Fix #9