Fix script not working on Windows
Improve documentation