added the class for registration, renamed the detection class