Add documentation

This cover #81, #82.