more minor cleaning

- made cookieKey an option
- removed unused Date methods
- removed unnecessary concatenation of "px" to pixel values
- other small code & documentation cleanups