Added _some_ documentation for functions