A1 custom gcode prevent oozing and hit top of Z axis

V5 coming soon , any suggestions