Fix computation of NUMBER_OF_PROCESSORS.
Simplify error handling.
Don't rely on assert for error handling.
Cosmetics.
Use booleans instead of ints for tracing options.
Use yes/no for tracing options instead of 1/0.