clear comments and debug info from collapse functionality