Doubts about End Gcode

Both topics could be solved via macros. See