Fixes edges detection
Renames css debug class and improve reset function