add basic cookie functions

Added createCookie, readCookie, eraseCookie functions
Calibrated values now stored in cookies. Fixes #13