Constantize error strings
Fix doc typo
Parameterize number of CPUs to be used