Comments added to detect.sh

Explains what the code does and the relevant sections. Also explains
areas that need work or are unknown.
Contributing information added.