Fixed Config

Fixed the config default values

Now if nil gets set for a value the real default is returned instead of 0.0

Also added tests