Fixed fromCornerOff, added for loops, additional commenting