All know bugs fixed & new Math for calcing corner