debug print statements for lock.h
added full page for query mode help