set the expire days for our cookie, default to 90
add a debug option, which has forced a large scale reordering of functions to allow for better public/private/privileged definitions