started coding system for detection

also changed the name of the folder. sorry this causes a lot of file
changes