added a demonstration of functions and some unittests
added docstrings
Merge remote-tracking branch 'origin/master'