Added documation.

resolves #3