xstool and let r=0 precede over undefined
working
clearcorner for bit finally working
fixed unittests