Corrected field name to be consistant with past releases for compatability
Corrected according to suggestions: Used wp_pars_args to set default values, cleaned up some validation as appropriate
Corrected object variable to match style guidelines
corrected typo on cariable names
Removed logfile write from debuging
Corrected some variable names that were missed in earlier changes