Add documentation, closes #4