Updated documentation for the getData function.