Added cache_notloggedin option, fixed indentation issues, fixed setting of default values