add documentation
Merge pull request #2 from vsavkin/docs

add docs to all functions