Add documentation and missing function parameters.
Merge pull request #6 from bar/docs

Add documentation and missing function parameters.