Refinements to debug.shtml --> Now faster and bug-free.