Added docs for functions in analysis package.