Reworded a docstring on cookies
Some tiny code cleanup