used $IP variable instead of relative path and $dir
moved default configuration variables to DefaultSettings.php, addressed CR notes
removed globals because F::app()->wg is goooood, F::app()->wf is baaaaa