The second part is a nozzle cleaning. It wipes the nozzle on a part of the bed that won't be used for printing to get debris off of it before printing. Cura does the same thing on my tevo tornado and actually sends a message saying what it's doing so when I'm logged into reprapfirmware it says "cleaning nozzle"