Ok, I have your code base with my settings uploaded. G28 followed by G1 Z0 still results in the nozzle 4mm above the bed.