Slabddscat rewriten for higher performance.
Minor bug fixes on enf of file detection.