Fixed function documentation, typos.