Add get_pref function to client
Add docstring to get_pref function