1.fixing comments.
2.fixing bugs in detector module