added detection code
added files