Some fine tuning for ncd
edits to ncd to try and detect compression
Fixed some issues with fork()
resotred kill(child)