Addition of docstrings to function in chatUtilities. Additionally, some
refactoring to remove a redundant function.