Lots of minor fixes, completely rewritten search logic and new color by resource usage option.