javadocs and copyright added to detection heuristics