Updating function documentation, some refactoring
Merge pull request #19 from mialondon/documentation-sprint

Updating function documentation, some refactoring