move debug module to dependencies
adding some doc fixes