Reduced the default number of samples per ray and fixed an issue with detecting the default sample distance case.