improved some minor stuff, wrote roi test
fixed depth search
fixed IsBad slot