My attempt to add in an adjustable Z axis endstop.

it kinda sucks. I'll look into other ways to implement it.