Improve documentation.
Add main check to test script to prevent problem with Windows multiprocessing.