fixed expiration bug in cookie(), added examples dir