SignatureDetector.java cleanup: remove initial attempts at algorithm; add some javadoc.