Updated comments style and added check when removing cookie