cleanup
adjustable clip-tp-zero treshold
cleanup
cleanup
refactored drawing