Added "attachment" and "clearCookie" methods. Small fixes.