Add module docstring
Use environment variable for number of threads

Previously, the number of threads was fixed in project configuration
stage.
Fix get_empty_fftw_array() bug