added a cookie jar and some doc