start implementation of identifying layer changes while printing

This is to support pause at height and pause at layer number