Better module file detection and docs update