Added some documentation for the getCookie method